import Service from './$axios'

//新增预警管理信息
export const addWarningManagement = (data) =>{
  return Service({
      url:'/gd-wms-base/warningManagement/addWarningManagement',
      method:'post',
      data:data
  })
}

//删除预警管理信息
export const deleteWarningManagement = (id) =>{
  return Service({
      url:'/gd-wms-base/warningManagement/deleteWarningManagement?id='+id,
      method:'delete',
  })
}

//修改预警管理信息
export const updateWarningManagement = (data) => {
   return Service({
       url:'/gd-wms-base/warningManagement/updateWarningManagement',
       method:'put',
       data:data
   })
}

//查询所有预警管理信息
export const list = () => {
  return Service({
      url: '/gd-wms-base/warningManagement/list',
      method: 'get',
  })
}

//查询所有预警管理信息
export const param = (str) => {
  return Service({
      url: '/gd-wms-base/warningManagement/list/param?'+str,
      method: 'get',
  })
}

//导出excel
export const exportExcel = ( ) => {
  return Service({
      url: '/gd-wms-base/warningManagement/excel/exportExcel',
      method: 'get',
  })
}

//导入
export const importExcel = ( ) => {
  return Service({
      url: '/gd-wms-base/warningManagement/excel/importExcel',
      method: 'get',
  })
}

//模板下载
export const excelTemplateDownload = ( ) => {
  return Service({
      url: '/gd-wms-base/warningManagement/excelTemplateDownload',
      method: 'get',
  })
}
export const uploadApp = (data) => {
  return Service({
      url: '/gd-wms-base/version/upload',
      method: 'post',
      data
  })
}
///version/look 查看
export const lookApp = (data) => {
  return Service({
      url: '/gd-wms-base/version/look',
      method: 'get',
  })
}